package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

/****
 * @Author:shenkunlin
 * @Description:ShOrderItem构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "ShOrderItem",value = "ShOrderItem")
@Table(name="sh_order_item")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)	//开启链式编程
public class ShOrderItem implements Serializable{

	@ApiModelProperty(value = "")
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	private Long id;//

	@ApiModelProperty(value = "")
    @Column(name = "orderId")
	private Integer orderId;//

	@ApiModelProperty(value = "单价")
    @Column(name = "price")
	private Double price;//单价

	@ApiModelProperty(value = "数量")
    @Column(name = "num")
	private Integer num;//数量

	@ApiModelProperty(value = "总价")
    @Column(name = "total_money")
	private Double totalMoney;//总价

	@ApiModelProperty(value = "实付金额")
    @Column(name = "pay_money")
	private Double payMoney;//实付金额

	@ApiModelProperty(value = "商品图片")
    @Column(name = "productImg")
	private String productImg;//商品图片

	@ApiModelProperty(value = "商品名称")
    @Column(name = "productName")
	private String productName;//商品名称

	@ApiModelProperty(value = "商品id")
	@Column(name = "productId")
	private Long productId;		//商品id

	@ApiModelProperty(value = "邮费")
    @Column(name = "post_fee")
	private Double postFee;//邮费
}
